package com.biz.primus.ms.payment.dao.repository;

import com.biz.primus.base.enums.CommonStatus;
import com.biz.primus.model.payment.enums.PaymentTradeType;
import com.biz.primus.model.payment.enums.PaymentType;
import com.biz.primus.ms.base.jpa.repository.CommonJpaRepository;
import com.biz.primus.ms.payment.dao.po.PaymentChannel;
import java.util.List;

/**
 * Created by defei on 9/25/17.
 */
public interface PaymentChannelRepository extends CommonJpaRepository<PaymentChannel, Long>, PaymentChannelDao {

    PaymentChannel findByMerchantIdAndPaymentTypeAndPaymentTradeType(Long merchantId, PaymentType paymentType, PaymentTradeType paymentTradeType);

    List<PaymentChannel> findByMerchantIdAndStatus(String mchId, CommonStatus status);
}
